![]() |
GetCCursor |
||||
Header: | Quickdraw.h | Carbon status: | Supported | |
Loads a color cursor resource into memory.
CCrsrHandle GetCCursor ( SInt16 crsrID );
The resource ID of the cursor that you want to display.
A handle to the new CCrsr structure. To display this cursor on the screen, call SetCCursor. If a resource with the specified ID isn’t found, then this function returns a NULL handle.
The GetCCursor function creates a new CCrsr structure and initializes it using the information in the ëcrsr’ resource with the specified ID.
Since the GetCCursor function creates a new CCrsr structure each time it is called, do not call the GetCCursor function before each call to the SetCCursor function. Unlike the way GetCursor and SetCursor are normally used, GetCCursor does not dispose of or detach the resource, so resources of type 'crsr' should typically be purgeable. Call the DisposeCCursor function when you are finished using the color cursor created with GetCCursor.
Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)